// 首页视频列表请求
import { get, post } from '@/server/http';
// 首页视频列表请求
export const getHomeVideoListAPI = () => get('common/video/getPopularVideo');

// 喜欢
export const likeAPI = (userId, videoId) => get(`user/${userId}/triggerLike/${videoId}`);

// 评论
export const commentAPI = (videoId) => get(`video/${videoId}/getVideoComment/page/1`);

// 评论赞
export const commentLikeAPI = (userId, commentId) => get(`user/${userId}/isLikedComment/${commentId}`);

// 发布评论
export const publishCommentAPI = (data) => post('user/commentVideo', data);

// @好友列表
export const mentionFriendListAPI = (userId) => get(`user/${userId}/getContact`);

// 发布后发送的请求
export const publishCommentAtUserAPI = (userId, data) => post(`user/${userId}/AtUser`, data);


// 搜索页/视频请求 请求
export const searchAPI = (userId, data) => post(`user/${userId}/searchVideo/1`, data);

// 搜索页/用户id请求 请求
export const searchUserIdAPI = (userId, data) => post(`user/${userId}/searchUser/1`, data);

// 搜索页 关注/取消关注
export const followAPI = (userId, followUserId) => get(`user/${userId}/triggerFollow/${followUserId}`);


// 获取好友主页信息
export const getFriendListAPIgetFriendProfileAPI = (friendUserId, userId) => get(`user/${friendUserId}/getUserInfo/${userId}`);



// 关注用户
export const followUserAPI = (currentUserId, userId) => get(`user/${currentUserId}/triggerFollow/${userId}`);


// TA 关注列表
export const getTAsFocusListAPI = (friendId, userId) => get(`user/${friendId}/Followers/page/1/${userId}`);
// TA 关注列表 关注/取消关注
export const triggerFollowAPI = (friendId, userId) => get(`user/${friendId}/triggerFollow/${userId}`);

// TA 粉丝列表
export const getTAsFansListAPI = (friendId, userId) => get(`user/${friendId}/Fans/page/1/${userId}`);
// TA 粉丝列表 关注/取消关注
export const triggerFansFollowAPI = (friendId, userId) => get(`user/${friendId}/triggerFollow/${userId}`);
